/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agol.rent.system.image;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 *
 * @author AgoL - Daffa
 */
public class PanelBagrounds extends JPanel {
    
    private Image image;
    
    public PanelBagrounds(){
    
      ImageIcon icon = new ImageIcon(getClass().getResource("/agol/rent/system/image/gradient2.jpg"));
      image = icon.getImage();
    }
    
    @Override
    protected void paintComponent(Graphics g){
        super.paintComponent(g);
        
        Graphics2D gd = (Graphics2D) g.create();
        
        gd.drawImage(image, 0, 0, null);
        
        gd.dispose();
        
    }
    
}
